﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLTV
{
    class Global
    {
        private ThuVienDataContext db;
        private Global()
        {
            db = new ThuVienDataContext();
        }
        private static Global instance = null;

        public static Global getIns()
        {
            if (instance == null)
            {
                instance = new Global();
            }
            return instance;
        }

        public ThuVienDataContext getDb()
        {
            return db;
        }

    }
}
